package cn.rtplay.esp32camcar;

public class CarLedStatus {
    private static final CarLedStatus instance = new CarLedStatus();
    public static final int LIGHT_NONE = 0;
    public static final int LIGHT_LEFT = 1;
    public static final int LIGHT_RIGHT = 2;
    public static final int LIGHT_WARNING = 3;
    private int turnLight = LIGHT_NONE;
    public static final int LIGHT_WIDTH = 4;
    private boolean widthLight = false;
    public static final int LIGHT_FAR = 5;
    public static final int LIGHT_NEAR = 6;
    public static final int LIGHT_AUTO = 7;
    public static final int LIGHT_STOP = 8;
    public static final int LIGHT_REVERSE = 9;
    private int headLights = LIGHT_NONE;

    public static CarLedStatus getInstance() {
        return instance;
    }

    public int getTurnLight() {
        return turnLight;
    }

    public void setTurnLight(int turnLight) {
        this.turnLight = turnLight;
    }

    public boolean isWidthLight() {
        return widthLight;
    }

    public void setWidthLight(boolean widthLight) {
        this.widthLight = widthLight;
    }

    public int getHeadLights() {
        return headLights;
    }

    public void setHeadLights(int headLights) {
        this.headLights = headLights;
    }
}
